<!doctype html>
<html ng-app='myApp'>
<head>
<#include "/h5/include.ftl"/>
<script>
	var _id = '${id}';
</script>
<script src="/h5/js/biz/order.js"></script>
<title>订单详情</title>
</head>

<body style="background:#f2f2f2;" ng-controller='MyController'>
<div class="index-header"> 
  <!--iheader-->
  <div id="iheader">
  <a href="javascript:history.back(-1);" class="iheader_back"></a>
    <h2 class="iheader_title">订单详情</h2>
    <h6 class="clear"></h6>
  </div>
</div>
<div class="h90"></div>
<div class="order_unpaid_state">
	<dl ng-show='order.state == 1'>
    	<dt><img src="/h5/images/xd_cion_unpaid.png" /></dt>
        <dd>
        	<h2>订单未付款</h2><h3>超过3小时订单自动取消，请尽快付款</h3>
        </dd>
    </dl>
    <dl ng-show='order.state == 2||order.state == 4'>
    	<dt><img src="/h5/images/xd_cion.png" /></dt>
        <dd>
        	<h2>成功下单</h2><h3>棒棒哒</h3>
        </dd>
    </dl>
</div>
<div class="order_success">
	<div class="order_a"><span ng-show='order.payType==2'>线下付款</span><span class="order_pay" ng-show='order.payType==1'>线上付款</span>订单号：{{order.code}}</div>
    <div class="order_b">
    	<div class="order_b_img"><img src="/h5/images/img.jpg" ng-src='/download?id=={{order.storeImg}}'/></div>
    	<div class="order_b_con">
        	<a class="order_b_name" ng-bind='order.storeName' ng-click='toStore(order.storeId)'>长兴楼饭店（新区总店）</a>
        	<ul>
            	<li ng-repeat="d in order.carts" ng-class="{'on':d.type==3}"><span ng-bind="'x'+d.num">x10</span>{{d.name}}</li>
            </ul>
            <div class="order_b_total">
            	<h2>共{{order.total}}份，共计：￥{{order.totalPay}}</h2>
                <h3 ng-show='order.wine'>酒水优惠：-￥{{order.wine}}</h3>
                <h3 ng-show='order.coupon'>使用优惠券：-￥{{order.coupon}}</h3>
				<h4>实付：<span ng-bind="'￥'+order.totalPay">￥1000</span></h4>
            </div>
        </div>
    </div>
    <div class="order_c">
    	<div class="order_remarks" ng-bind="'备注：'+order.info">备注：微辣少盐</div>
    </div>
    <div class="order_unpaid" ng-show='order.state==1'>
        <a href="" class="go_pay" ng-click='toPay(order)'>去付款</a><a href="" ng-click='updateOrder(order,1)'>取消订单</a>
    </div>
    <div class="order_pj" ng-show='order.state==4&&order.hasComment==0'>
    	<a href="" ng-click='toComment(order.id)'>评价</a>
    </div>
    <div class="order_pj2" ng-show='order.hasComment==1'>
    	<a href="">已评价</a>
    </div>
    <div class="h20"></div>
</div>

</body>
</html>
